﻿(function () {
    var DataMorph = window.DataMorph || {};

    DataMorph.ProcessingTimesViewModel = function (data) {
        var self = this;

        this.DataSet = ko.observable(data ? data.DataSet : "");
        this.TimeRequested = ko.observable(data ? data.TimeRequested : "");
        this.AverageReadTime = ko.observable(data ? data.AverageReadTime : "");
        this.AverageParseTime = ko.observable(data ? data.AverageParseTime : "");
        this.AverageWriteTime = ko.observable(data ? data.AverageWriteTime : "");
        this.MaxReadTime = ko.observable(data ? data.MaxReadTime : "");
        this.MaxParseTime = ko.observable(data ? data.MaxParseTime : "");
        this.MaxWriteTime = ko.observable(data ? data.MaxWriteTime : "");
        this.MinReadTime = ko.observable(data ? data.MinReadTime : "");
        this.MinParseTime = ko.observable(data ? data.MinParseTime : "");
        this.MinWriteTime = ko.observable(data ? data.MinWriteTime : "");
        this.FilesRead = ko.observable(data ? data.FilesRead : "");
        this.FilesWritten = ko.observable(data ? data.FilesWritten : "");
        this.CompletedTime = ko.observable(data ? data.CompletedTime : "");
        this.TotalProcessingTime = ko.observable(data ? data.TotalProcessingTime : "");
        this.InstanceCount = ko.observable(data ? data.InstanceCount : "");
        this.CoreCount = ko.observable(data ? data.CoreCount : "");
        this.TotalCores = ko.observable(data ? data.CoreCount * data.InstanceCount : "");
        this.BatchSize = ko.observable(data ? data.BatchSize : "");
    };
})();